package com.kemai.designmode.Facaed

import com.alibaba.fastjson.JSON
import com.kemai.common.utils.AppUtils
import com.kemai.designmode.composite.AdministrativeArea

/**

 *@description:邮寄服务
 * @author: zhaoshanshan
 * @date: 2022/10/3 10:42 下午

 */
class SendService {

    fun doSend(){
        val root = AdministrativeArea("area")
        root.addChildren(AdministrativeArea("北京"))
        root.addChildren(AdministrativeArea("上海"))
        val wuHanRoot = AdministrativeArea("武汉")
        root.addChildren(wuHanRoot)

        wuHanRoot.addChildren(AdministrativeArea("红山区"))
        wuHanRoot.addChildren(AdministrativeArea("青山区"))
        val wuHanStreetRoot = AdministrativeArea("东西湖区")
        wuHanRoot.addChildren(wuHanStreetRoot)

        wuHanStreetRoot.addChildren(AdministrativeArea("螃蟹岬"))
        wuHanStreetRoot.addChildren(AdministrativeArea("昙华林"))
        wuHanStreetRoot.addChildren(AdministrativeArea("九峰"))
        AppUtils.getInstance()?.showToast("邮寄地址:${JSON.toJSONString(root)}")


    }
}